/**
 * 
 */
package model.entities;

import java.io.Serializable;

/**
 * @author george.cabral
 *
 */
public class PontoAcessoId implements Serializable {

    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = -7763822182222270715L;
	private int ptoacesCd;
     private String codAbpImovel;

    // Constructors

    /** default constructor */
    public PontoAcessoId() {
    }

    /** full constructor */
    public PontoAcessoId(int ptoacesCd, String codAbpImovel) {
        this.ptoacesCd = ptoacesCd;
        this.codAbpImovel = codAbpImovel;
    }
    
   
    // Property accessors

    public int getPtoacesCd() {
        return this.ptoacesCd;
    }
    
    public void setPtoacesCd(int ptoacesCd) {
        this.ptoacesCd = ptoacesCd;
    }

    public String getCodAbpImovel() {
        return this.codAbpImovel;
    }
    
    public void setCodAbpImovel(String codAbpImovel) {
        this.codAbpImovel = codAbpImovel;
    }

   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof PontoAcessoId) ) return false;
		 PontoAcessoId castOther = ( PontoAcessoId ) other; 
         
		 return (this.getPtoacesCd()==castOther.getPtoacesCd())
 && ( (this.getCodAbpImovel()==castOther.getCodAbpImovel()) || ( this.getCodAbpImovel()!=null && castOther.getCodAbpImovel()!=null && this.getCodAbpImovel().equals(castOther.getCodAbpImovel()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + this.getPtoacesCd();
         result = 37 * result + ( getCodAbpImovel() == null ? 0 : this.getCodAbpImovel().hashCode() );
         return result;
   }   

}
